<form id="pagerForm" method="post" action="__URL__/car">
	<input type="hidden" name="pageNum" value="{$currentPage}" />
	<input type="hidden" name="numPerPage" value="{$numPerPage}" />
	<input type="hidden" name="id" value="{$id}"/> 
 	<!-- <input type="hidden" name="orderField" value="${param.orderField}" /> -->
</form>
<script type="text/javascript">
function reloadcar() {
    navTab.reload("__URL__/car", {});
}
function dbltable(target,rel){
    if( target == 'sid_node'){
    $.pdialog.open("__URL__/editcar/id/"+rel+"/sid_node="+rel,"pdialogid", "修改租车信息", { max:false, mask:true, width: 600, height: 400});
    } 
  }
</script>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="edit" href="__URL__/editcar/id/{sid_node}" target="dialog" mask="true" warn="请选择节点"><span>修改</span></a></li>
		   <li><a class="delete" href="__URL__/cardelete/navTabId/car" target="selectedTodo" rel="ids" postType="string" title="你确定要删除吗？" warn="请选择信息"><span>删除</span></a></li>
		    <li class="line">line</li>
			<li><a class="icon" href="#" onclick="reloadcar()"><span>刷新</span></a></li>
		</ul>
	</div>


	<table class="table" width="100%" layoutH="75">
		<thead>
		<tr>
		    <th width="20" align="center"><input type="checkbox" group="ids" class="checkboxCtrl"></th>	
			<th width="100" align="center">发货方</th>
			<th width="100" align="center">客户</th>
			<th width="100" align="center">供应商</th>
			<!-- <th width="100" align="center">承运人</th>
			 -->
			<th width="100" align="center">起始地</th>
			<th width="140" align="center">目的地</th>
			<th width="100" align="center">车牌号</th>
			<th width="100" align="center">出厂净重/吨</th>
			<th width="100" align="center">结算净重/吨</th>
			<th width="100" align="center">运费(元)</th>
			<th width="100" align="center">结算状态</th>
			<!--  <th width="100" align="center">卸货净重</th>
			<th width="155" align="center">卸货人</th>
			<th width="100" align="center">卸货时间</th>-->
			<th width="100" align="center">操作</th>
		</tr>
		</thead>
		<tbody>
		<define name="number" value="1"/>
		<volist id="vo" name="list">
			<tr target="sid_node" rel="{$vo['id']}">
			    <td><input type="checkbox" name="ids" value="{$vo['id']}" /></td>
				<!-- <td><a href="__URL__/index/id/{$vo['id']}/" target="navTab" rel="__MODULE__">{$vo['carriername']}</a></td> -->
				<td>{$vo['sendername']}</td>
				<td>
				   <volist name="customer" id="cus">
				     <eq name="cus['id']" value="$vo['customer']">{$cus['customername']}</eq>
				   </volist></td>
				<td>
				<volist name="provider" id="pro">
				     <eq name="pro['id']" value="$vo['providername']">{$pro['providername']}</eq>
				   </volist></td>
			<!-- 	<td>{$vo['carrier']}</td>
				 -->
				<td>{$vo['beginning']}</td>
				<td>{$vo['destination']}</td>
				<td>{$vo['carno']}</td>
				<td>{$vo['cweight']}</td>
				<td>{$vo['uweight']}</td>
				<td>{$vo['freight']}</td>
				<td><eq name="vo.status" value="0">未结算<else/>已结算</eq></td>
				<!--  <td>{$vo['uweight']}</td>
				<td>{$vo['uloader']}</td>
				<td>{$vo['uloadtime']}</td>-->
				<td><eq name="vo.status" value="0"><a href="__URL__/editcar/id/{$vo['id']}" target="dialog" mask="true">编辑</a><else/>无</eq></td>
			</tr>
		</volist>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>每页</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<eq name="numPerPage" value="24"><option value="24" selected>24</option><else/><option value="24">24</option></eq>
				<eq name="numPerPage" value="50"><option value="50" selected>50</option><else/><option value="50">50</option></eq>
				<eq name="numPerPage" value="100"><option value="100" selected>100</option><else/><option value="100">100</option></eq>
				<eq name="numPerPage" value="200"><option value="200" selected>200</option><else/><option value="200">200</option></eq>
			</select>
			<span>条，共{$totalCount}条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$currentPage}">
		</div>
	</div>
</div>

